home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Review 28
/
Creative-Review-CD-ROM-28.iso
/
pc
/
kungfu
/
assets
/
game.dir
/
00037_Script_victory class
< prev
next >
Wrap
Text File
|
1997-08-08
|
2KB
|
111 lines
-- victory class
property ancestor
property player
property mode
global gplayer, ggame, gscore
-- ==================================================
-- new method
-- --------------------------------------------------
on new me, theancestor
minit me, theancestor
return me
end new
-- ==================================================
-- minit method
-- --------------------------------------------------
on minit me, theancestor
-- put "in minit victory"
set ancestor = theancestor
-- put "out minit victory"
end minit me
-- ==================================================
-- mvictory method
-- --------------------------------------------------
on mvictory me
-- put "in mvictory victory"
set the callback of me = me
set player = gplayer
set gplayer = me
set the callback of me = me
set mode = #waiting
-- put "out mvictory victory"
end mvictory
-- ==================================================
-- manimfinish method
-- --------------------------------------------------
on manimfinish me
-- put "in manimfinish victory", mode
mmovefinish ancestor
case mode of
#waiting:
set move = mkeytomove ( me, #victory )
msetcurrentmove me, move
set mode = #playing
#playing:
mfinish me
set mode = #none
end case
-- put "out manimfinish victory"
end manimfinish me
-- ==================================================
-- mfinish method
-- --------------------------------------------------
on mfinish me
-- put "in mfinish victory"
set gplayer = player
set player = 0
mabort ancestor
mfinishscreen ggame
-- put "out mfinish victory"
end mfinish
-- ==================================================
-- mkeydown method
-- --------------------------------------------------
on mkeydown me
-- put "in mkeydown victory"
-- put "out mkeydown victory"
end mkeydown
-- ==================================================
-- mjoystick method
-- --------------------------------------------------
on mjoystick me
-- put "in mjoystick victory"
-- put "out mjoystick victory"
end mjoystick